<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/1/6
  Time: 14:59
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<shiro:notAuthenticated>没有登录，才能看见</shiro:notAuthenticated><br>
<shiro:hasRole name="管理员">只有管理员能够看见</shiro:hasRole><br>
<shiro:hasRole name="用户">只有用户能够看见</shiro:hasRole><br>
<shiro:hasAnyRoles name="管理员,用户">管理员或者用户都能看见</shiro:hasAnyRoles>
</body>
</html>







